﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DepartmentSpecificStoreViewUserControl.ascx.cs"
    Inherits="DepartmentSpecificStoreView.DepartmentSpecificStoreView.DepartmentSpecificStoreViewUserControl" %>
<table>
    <tr>
        <td class="style1">
            Select department to view:
        </td>
        <td>
        </td>
        <td>
            <asp:DropDownList ID="sourceDepartment" runat="server" AutoPostBack="True" OnSelectedIndexChanged="sourceDepartmentChanged">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td class="style1">
            &nbsp;
        </td>
    </tr>
    <tr>
        <td class="style1">
            Select field to filter on:
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            <asp:DropDownList ID="currentFilterFields" runat="server" AutoPostBack="False">
            </asp:DropDownList>
        </td>
        <td>
            &nbsp;&nbsp;
        </td>
        <td>
            Filter Value:
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            <asp:TextBox ID="filterValueInput" runat="server"></asp:TextBox>
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            <asp:Button ID="filterButton" runat="server" Text="Filter Grid" OnClick="filterButton_Click"
                Width="115px" />
        </td>
        <td>
            &nbsp;&nbsp;
        </td>
        <td>
            <asp:Button ID="clearFilter" runat="server" Text="Clear Grid Filter" OnClick="clearFilter_Click"
                Width="115px" />
        </td>
    </tr>
    <tr>
        <td>
            <asp:CheckBox ID="activeOnly" runat="server" Checked="True" Text="View Active Stores Only"
                AutoPostBack="True" OnCheckedChanged="activeOnly_CheckedChanged" />
        </td>
    </tr>
    <tr>
        <td>
        </td>
    </tr>
</table>
<br />
<br />
<style type="text/css">
    div#div-datagrid
    {
        width: 900px;
        height: 450px;
        overflow: auto;
        scrollbar-base-color: #ffeaff;
    }
    
    /* Locks the left column */
    td.locked, th.locked
    {
        border: none 0px;
        background-color: silver;
        position: relative;
        cursor: default;
        z-index: 98; /*IE5+ only*/
        left: expression(document.getElementById("div-datagrid").scrollLeft-2);
    }
    
    /* Locks table header */
    th
    {
        font-size: 12px;
        font-weight: bold;
        text-align: left;
        font-family: verdana,arial,helvetica,sans-serif;
        background-color: Silver;
        color: white;
        border: none 0px;
        padding: 4px 4px 4px 4xp;
        position: relative;
        cursor: default; /*IE5+ only*/
        top: expression(document.getElementById("div-datagrid").scrollTop-2);
        z-index: 10;
    }
    
    /* Keeps the header as the top most item. Important for top left item*/
    th.locked
    {
        z-index: 99;
    }
    
    
    .normalRow td
    {
        background-color: White;
        font-family: verdana,arial,helvetica,sans-serif;
        font-size: 12px;
        padding: 2px 2px 2px 2px;
        text-align: left;
        border-color: Black;
        border-right: 1px solid Gray;
    }
    
    
    .alternateRow td
    {
        background-color: #99CCFF;
        font-family: verdana,arial,helvetica,sans-serif;
        font-size: 12px;
        padding: 2px 2px 2px 2px;
        text-align: left;
        border-color: Black;
        border-right: 1px solid Gray;
    }
    
    
    
    .style1
    {
        width: 188px;
    }
    
    .commenttip1
    {
        position: relative;
    }
    .commenttip1 a
    {
        position: relative;
    }
    
    .commenttip1 a span
    {
        display: none;
        color: #FFFFFF;
    }
    
    
    .commenttip1 a:hover span
    {
        display: block;
        position: absolute;
        width: 200px;
        border: 1px black outset;
        background-color: white;
        height: 50px;
        left: 225px;
        top: 20px;
        color: black;
        padding: 5px;
    }
</style>
<div id="div-datagrid">
    <asp:GridView ID="departmentGridView" runat="server" UseAccessibleHeader="True" AlternatingRowStyle-BackColor="#999966"
        AlternatingRowStyle-Wrap="False" HeaderStyle-BackColor="Silver" HeaderStyle-ForeColor="White"
        HeaderStyle-BorderWidth="3" AutoGenerateColumns="False" AllowSorting="True" OnRowDataBound="RowDataBoundEvent"
        OnSorting="SortLocalColumn">
        <HeaderStyle BackColor="Silver" ForeColor="White"></HeaderStyle>
        <RowStyle CssClass="normalRow" />
        <AlternatingRowStyle CssClass="alternateRow"></AlternatingRowStyle>
    </asp:GridView>
    <asp:Label ID="errorLabel" runat="server" Text=""></asp:Label>
    <br />
</div>
